package gen.core.models;


import org.apache.commons.lang.StringUtils;

public class Table {
	private String fullName = null;
	private String name = null;
	private Column[] columns = null;
	private Row[] rows = null;

	public String getFullName() {
		return fullName;
	}

	public void setFullName(String fullName) {
		this.fullName = fullName;
	}

	public Table() {
	}

	public void setColumns(Column[] columns) {
		this.columns = columns;
	}

	public void setRows(Row[] rows) {
		this.rows = rows;
	}
	
	public String toString(){
		String result = "Table Name: "+this.name+"\n";
		result = result + StringUtils.join(columns, "\n")+"\n";
		result = result + StringUtils.join(rows, "\n")+"\n";
		return result;
	}

	public String getName() {
		return name;
	}

	public void setName(String tableName) {
		this.name = tableName;
	}

	public Column[] getColumns() {
		return columns;
	}

	public Row[] getRows() {
		return rows;
	}
}
